#ifndef RECBOX_H
#define RECBOX_H
#include "recboxitem.h"
#include <QWidget>
#include <QJsonArray>
#include <QJsonObject>
namespace Ui {
class RecBox;
}

class RecBox : public QWidget
{
    Q_OBJECT

public:
    explicit RecBox(QWidget *parent = nullptr);
    ~RecBox();
    // 初始化RecBoxItem
    void initRecBoxUi(QJsonArray data,int row);
private slots:
    void on_btUP_clicked();

    void on_btDOWN_clicked();

private:
    Ui::RecBox *ui;
    int row;
    int col;
private:
    void createRecBoxItem();

    QJsonArray imageList;
    int currentIndex;
    int count;
};

#endif // RECBOX_H
